package com.dynamic.springbootdynamic.service.impl;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.dynamic.springbootdynamic.dao.UserMapper;
import com.dynamic.springbootdynamic.entity.User;
import com.dynamic.springbootdynamic.service.UserService;
import org.springframework.stereotype.Service;

import java.util.List;

@DS("slave")
@Service("userServiceImpl")
public class UserServiceImpl extends ServiceImpl<UserMapper, User> implements UserService {

    @Override
    public List<User> getAllUser() {
        return baseMapper.selectList(null);
    }
}


